package com.csyaonie.android.recyclerview;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.csyaonie.android.R;

public class RecyclerViewActivity extends AppCompatActivity {

    private Button lrv1;
    private Button lrv2;
    private Button lrv3;
    private Button grv1;
    private Button sgv1;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_recycler_view);

        lrv1=findViewById(R.id.lrv1);
        lrv2=findViewById(R.id.lrv2);
        lrv3=findViewById(R.id.lrv3);
        grv1=findViewById(R.id.grv1);
        sgv1=findViewById(R.id.sgv1);
        lrv1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(RecyclerViewActivity.this,LinearRecyclerViewActivity.class);
                startActivity(intent);
            }
        });
        lrv2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(RecyclerViewActivity.this,LinearHorRecyclerViewActivity.class);
                startActivity(intent);
            }
        });
        lrv3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(RecyclerViewActivity.this,LinearComRecyclerViewActivity.class);
                startActivity(intent);
            }
        });
        grv1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(RecyclerViewActivity.this,GrideRecyclerViewActivity.class);
                startActivity(intent);
            }
        });
        sgv1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(RecyclerViewActivity.this,StaggeredRecyclerViewActivity.class);
                startActivity(intent);
            }
        });

    }
}